const arr=[12,5,8,8,130,44,130,"a",'b','a']
const obj={}
arr.forEach((item,index)=>{
obj[item]=item
})
console.log(obj);
console.log(Object.keys(obj));
/* console.log(Object.getOwnPropertyNames(obj)); */